//
//  SettingViewController.m
//  ALFashion
//
//  Created by dengzhicheng on 15/6/15.
//  Copyright (c) 2015年 dengzhicheng. All rights reserved.
//

#import "SettingViewController.h"
#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height

@interface SettingViewController ()

@end

@implementation SettingViewController

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        
    }
    return self;
}

- (void)loadView
{
    [super loadView];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor colorWithRed:0.3 green:0.3 blue:0.3 alpha:0.95]];
    self.navigationController.navigationBar.hidden = YES;
    
    [self createSubView];
}

- (void)createSubView
{
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH / 6, 20, WIDTH * 2 / 3, 44)];
    titleLabel.text = @"设置";
    titleLabel.textColor = [UIColor whiteColor];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    titleLabel.font = [UIFont systemFontOfSize:24];
    [self.view addSubview:titleLabel];
    
    UIButton *backButton = [[UIButton alloc] initWithFrame:CGRectMake(WIDTH * 5 / 6, 33, 20, 20)];
    [backButton setImage:[UIImage imageNamed:@"back.png"] forState:UIControlStateNormal];
    [backButton addTarget:self action:@selector(backButtonClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:backButton];
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 64, WIDTH, 0.5)];
    [view setBackgroundColor:[UIColor whiteColor]];
    [self.view addSubview:view];
    
}

- (void)backButtonClick:(UIButton *)button
{
    [self dismissViewControllerAnimated:YES completion:nil];
}






@end
